package com.prizedraw.prize_draw.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author czj666
 * @since 2021-09-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Department extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "部门名称不能为空")
    private String name;

    private String remark;

    @TableField(exist = false)
    private List<SysRole> children = new ArrayList<>();




}
